﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

using System.Threading.Tasks;

namespace STF.OrangeDog.Model
{
    public class Cover:BaseModel
    {
        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(256), Column(TypeName = "varchar(256)")]
        [Display(Name = "标题")]
        public string details { get; set; }
      
        [StringLength(256), Column(TypeName = "varchar(256)")]
        [Display(Name = "图片1")]
        public string Image1 { get; set; }

        [StringLength(256), Column(TypeName = "varchar(256)")]
        [Display(Name = "图片2")]
        public string Image2 { get; set; }

        [StringLength(256), Column(TypeName = "varchar(256)")]
        [Display(Name = "图片3")]
        public string Image3 { get; set; }
        [ForeignKey(nameof(Blog.Id))]
        public int bid { get; set; }
    }
}
